{% extends "bootstrap/base.html" %}

{% block title %}Base{% endblock %}


{% block navbar %}
{{ nav.top.render() }}
{% endblock %}

{% with messages = get_flashed_messages() %}
  {% if messages %}
    <ul class=flashes>
    {% for message in messages %}
      <li>{{ message }}</li>
    {% endfor %}
    </ul>
  {% endif %}
{% endwith %}

{% block content %}
<div class="container">
    <div class="page-header"></div>
    {% if get_flashed_messages() %}
     {% for message in get_flashed_messages() %}
     <div class="alert alert-warning">
        <button type="button" class="close" data-dismiss="alert">&times;</button>
        {{ message }}
     </div>
     {% endfor %}
    {% endif %}

    {% block page_content %}
    {% endblock %}
</div>
{% endblock %}

{% block styles %}
    {{ super() }}
    <link rel="stylesheet"
          href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/cerulean/bootstrap.min.css">
{% endblock %}
